package com.zlp.springcloud.service.impl;

import com.zlp.springcloud.dao.UserDao;
import com.zlp.springcloud.entity.User;

import com.zlp.springcloud.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @auther zzyy
 * @create 2020-02-18 10:40
 */
@Service
public class UserServiceImpl implements UserService
{
    @Resource
    private UserDao userDao;

    public int create(User user)
    {
        return userDao.create(user);
    }

    public User getUserById(Long id)
    {
        return userDao.getUserById(id);
    }
}
